import request from "../utils/request";


export function getPic(params={}){
    return request({
        method:'GET',
        url:'/lunbo',
        params
    })
}

export function getOne(id){
    return request({
        method:'GET',
        url:`/lunbo/${id}`
    })
}

export function update(data){
    return request({
        method:'PUT',
        url:`/lunbo`,
        data
    })
}

export function deletePic(id){
    return request({
        method:'DELETE',
        url:`/lunbo/${id}`
    })
}

export function addPic(data){
    return request({
        method:'POST',
        url:'/lunbo',
        data
        //data为请求体
    })
}


